<h2>Current Studio Status</h2>

<div class="block tabs spaces">
	
	<div class="hd">
			<ul>
				<li><a>Studio Status</a></li>
				<li><a href="<?=site_url('reporting/projection');?>">Projection</a></li>
				<li><a href="<?=site_url('reporting/invoicing');?>">Invoicing</a></li>
			</ul>
		<div class="clear"></div>		
	</div>
	
	<div class="bd">

		<p class="invoiceselector" style="float: right;">Filter <a href="">Invoiced</a>, <a href="">Not Invoiced</a></p>
		<p class="showselector">Show <a href="">All</a>, <a href="">Live</a>, <a href="">Proposed</a>, <a href="">Complete</a></p>

		<table class="projects">
			<thead>
				<tr>
					<td class="project">Project</td>
					<td class="client">Client</td>
					<td class="status">Status</td>
					<td class="invoiced">Invoiced</td>
				</tr>
			</thead>
			<tbody>
			<?php if ($fulljoblist):?>
				<?php foreach($fulljoblist as $job):?>
				<tr>
					<td><a href="<?=site_url('jobs/showUpdates/'.$job->id);?>"><?=$job->job_title;?></a></td>
					<td><a href="<?=site_url('companies/view/'.$job->companyid);?>"><?=$job->company_name;?></a></td>
					<td><?=ucfirst($job->job_status);?> <?php if ($job->cancelled):?><em>Cancelled</em><?php endif;?> <?php if ($job->archived):?><em>Archived</em><?php endif;?></td>
					<td><a href="<?=site_url('jobs/generateInvoice/'.$job->id);?>"><?php if ($job->invoices_generated == 0):?>No<?php else:?>Yes (<?=$job->invoices_generated;?>)<?php endif;?></a></td>
				</tr>
				<?php endforeach;?>
			<?php endif;?>
			</tbody>
		</table>
			
	</div>
</div>
